<?xml version="1.0" encoding="UTF-8" ?>
<%@page
	contentType="text/html;charset=UTF-8"
	pageEncoding="UTF-8"
	import="fr.utbm.gi.in56.error.ErrorType" 
%>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
        <link rel="stylesheet" media="screen" type="text/css" title="Style" href="style.css" />
        <title>L'Entre-Pot</title>
    </head>
    <body>
        <div id ="container">
            <jsp:directive.include file="header.jsp"/>
            <jsp:directive.include file="topMenu.jsp"/>
            
            <div id="core">
                <div id="frame">
                	<%
                		ErrorType error = (ErrorType)request.getAttribute( "connectionError" );%>
					<%
                        if( error != null )
                        {
					%>
                            <div id="error">
                                <%= error.getErrorMessage() %>
                            </div>
					<%
						}
                    %>
                    <form method="post" action="LoginServlet" name="connexion">
                        <p class="center">
                            <label for="login">Identifiant :</label>
                            <input type="text" name="login" id="login" />
                        </p>
                        <p class="center">
                            <label for="password">Mot de passe :</label>
                            <input type="password" name="password" id="password" />
                        </p>
                        <p class="center">
                            <input type="submit" value="Se connecter" name="connection"/>
                        </p>
                        <p class="comment">Pas encore inscrit ? Cliquez <a href="register.jsp">ici</a> pour créer un compte !</p>
                    </form>
                </div>
            </div>
            
            <jsp:directive.include file="footer.jsp"/>
        </div>
    </body>
</html>